﻿using B.S.DataBase.MyProject.Domain;
using B.S.DataBase.MyProject.ErrorCode;
using B.S.DataBase.MyRead.API.DTOs;
using MediatR;

namespace B.S.DataBase.MyRead.API.Appicant.Command.Approval
{
    /// <summary>
    /// 查询请假列表
    /// </summary>
    public class QueryApprovalCommand:IRequest<APIResult<APIPaging<LeaveApplication>>>
    {
        /// <summary>
        /// 审批状态
        /// </summary>
        public int Status { get; set; }
        /// <summary>
        /// 姓名
        /// </summary>
        public string? ApplicantName { get; set; }
        /// <summary>
        /// 报到时间
        /// </summary>
        public string? RegistrationTime { get; set; }
        /// <summary>
        /// 当前登录人
        /// </summary>
        public string NickName { get; set; }
        /// <summary>
        /// 部门编号
        /// </summary>
        public int DepartmentId { get; set; }
        /// <summary>
        /// 部门领导标志
        /// </summary>
        public int DepartmentHead { get; set; }
        /// <summary>
        /// 起始页
        /// </summary>
        public int PageIndex { get; set; }
        /// <summary>
        /// 页容量
        /// </summary>
        public int PageSize { get; set; }
    }
}
